import React from "react";
import styles from './transferinput.module.css';

export default function TransferInput({ extIcon, ...rest }) {

    return (
        <div className={styles.transferInputRoot}>
            <div className={styles.transferInputContent}>
                <div className={styles.transferInputBackground}>
                    <input className={styles.transferInputValue} {...rest} />
                </div>
                {extIcon && <img className={styles.transferInputExtIcon} src={extIcon} alt="" />}
            </div>
        </div>
    )
}